<!-- 权限分类管理 -->
<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">权限分类管理</h1>
</div>
<div ng-controller="authorizationTypeManagentController">
    <div class="wrapper-sm">
        <div class="panel panel-default">
            <div class="panel-heading font-bold">查询</div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="control-label pull-left m-t-sm">名称</label>
                    <div class="col-md-2 form-group">
                        <input ng-model="queryTerms.name" id="table_authorizationTypeManagent_queryTerms_name" type="text" class="form-control input-sm" id="fa-searchz" placeholder="请输入分类名称">
                    </div>
                    <div class="col-md-2">
                        <button ng-click="query()" id="table_authorizationTypeManagent_query" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                                <i class="fa fa-search" ng-show="!querying"></i>
                                <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                                <span ng-show="!querying">查询</span>
                                <span ng-show="querying">查询中...</span>
                            </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                权限分类列表
            </div>
            <div class="table-responsive">
                <div ui-grid="gridOptions" id="table_authorizationTypeManagent_gridOptions" class="gridStyle" ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns style="height:{{heightA}}px;overflow:hidden; min-width:1000px;"></div>
            </div>
        </div>
        <button ng-click="addAuthorizationType()" id="table_authorizationTypeManagent_add" class="pull-right-xs btn btn-sm m-b-xs btn-info btn-addon" data-toggle="modal" data-target="#myModal"><i class="fa fa-plus"></i>添加</button>
    </div>
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" id="closeModal">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">{{title}}</h4>
                </div>
                <form class="form-horizontal form-validation" id="authTypeForm" novalidate>
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-lg-4 control-label">分类名称<span class="text-danger">*</span></label>
                            <div class="col-lg-4">
                                <input ng-model="detail.name" id="table_authorizationTypeManagent_detail_name" type="text" class="form-control" placeholder="请填写分类名称" name="name" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-4 control-label">分类类别<span class="text-danger">*</span></label>
                            <div class="col-lg-4">
                                <select ng-model="detail.level" id="table_authorizationTypeManagent_detail_level" class="form-control" ng-options="x.value as x.text for x in levelList" name="level" required>
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button id="table_authorizationTypeManagent_detail_cancel" type="button" class="btn btn-default" data-dismiss="modal" id="cancel">取消</button>
                        <button ng-click="detail.click()" id="table_authorizationTypeManagent_detail_click" type="button" class="btn btn-primary" id="save">保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

</div>